home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Stone Design
/
Stone Design.iso
/
Stone_Friends
/
Wave
/
WavesWorld
/
Source
/
Shaders
/
RCShaders
/
RCEmboss.sl
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1995-03-22
|
266 b
|
14 lines
/* Listing 16.36 Displacement shader embossing a surface using a texture*/
/*
*/
displacement
RCEmboss(
float Km = .05;
string texturename = "")
{
if( texturename != "") {
P -= Km * texture(texturename, s, t) * normalize(N);
N = calculatenormal(P);
}
}